Optimal. Leaf size=82 \[ -\frac {4 x}{9 a^2}-\frac {2 x^3}{27}-\frac {4 \sqrt {1-a^2 x^2} \text {ArcCos}(a x)}{9 a^3}-\frac {2 x^2 \sqrt {1-a^2 x^2} \text {ArcCos}(a x)}{9 a}+\frac {1}{3} x^3 \text {ArcCos}(a x)^2 \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 82, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {4724, 4796,
4768, 8, 30} \begin {gather*} -\frac {2 x^2 \sqrt {1-a^2 x^2} \text {ArcCos}(a x)}{9 a}-\frac {4 x}{9 a^2}-\frac {4 \sqrt {1-a^2 x^2} \text {ArcCos}(a x)}{9 a^3}+\frac {1}{3} x^3 \text {ArcCos}(a x)^2-\frac {2 x^3}{27} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 30
Rule 4724
Rule 4768
Rule 4796
Rubi steps
\begin {align*} \int x^2 \cos ^{-1}(a x)^2 \, dx &=\frac {1}{3} x^3 \cos ^{-1}(a x)^2+\frac {1}{3} (2 a) \int \frac {x^3 \cos ^{-1}(a x)}{\sqrt {1-a^2 x^2}} \, dx\\ &=-\frac {2 x^2 \sqrt {1-a^2 x^2} \cos ^{-1}(a x)}{9 a}+\frac {1}{3} x^3 \cos ^{-1}(a x)^2-\frac {2 \int x^2 \, dx}{9}+\frac {4 \int \frac {x \cos ^{-1}(a x)}{\sqrt {1-a^2 x^2}} \, dx}{9 a}\\ &=-\frac {2 x^3}{27}-\frac {4 \sqrt {1-a^2 x^2} \cos ^{-1}(a x)}{9 a^3}-\frac {2 x^2 \sqrt {1-a^2 x^2} \cos ^{-1}(a x)}{9 a}+\frac {1}{3} x^3 \cos ^{-1}(a x)^2-\frac {4 \int 1 \, dx}{9 a^2}\\ &=-\frac {4 x}{9 a^2}-\frac {2 x^3}{27}-\frac {4 \sqrt {1-a^2 x^2} \cos ^{-1}(a x)}{9 a^3}-\frac {2 x^2 \sqrt {1-a^2 x^2} \cos ^{-1}(a x)}{9 a}+\frac {1}{3} x^3 \cos ^{-1}(a x)^2\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 63, normalized size = 0.77 \begin {gather*} -\frac {4 x}{9 a^2}-\frac {2 x^3}{27}-\frac {2 \sqrt {1-a^2 x^2} \left (2+a^2 x^2\right ) \text {ArcCos}(a x)}{9 a^3}+\frac {1}{3} x^3 \text {ArcCos}(a x)^2 \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 59, normalized size = 0.72
method | result | size |
derivativedivides | \(\frac {\frac {a^{3} x^{3} \arccos \left (a x \right )^{2}}{3}-\frac {2 \arccos \left (a x \right ) \left (a^{2} x^{2}+2\right ) \sqrt {-a^{2} x^{2}+1}}{9}-\frac {2 a^{3} x^{3}}{27}-\frac {4 a x}{9}}{a^{3}}\) | \(59\) |
default | \(\frac {\frac {a^{3} x^{3} \arccos \left (a x \right )^{2}}{3}-\frac {2 \arccos \left (a x \right ) \left (a^{2} x^{2}+2\right ) \sqrt {-a^{2} x^{2}+1}}{9}-\frac {2 a^{3} x^{3}}{27}-\frac {4 a x}{9}}{a^{3}}\) | \(59\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.48, size = 72, normalized size = 0.88 \begin {gather*} \frac {1}{3} \, x^{3} \arccos \left (a x\right )^{2} - \frac {2}{9} \, a {\left (\frac {\sqrt {-a^{2} x^{2} + 1} x^{2}}{a^{2}} + \frac {2 \, \sqrt {-a^{2} x^{2} + 1}}{a^{4}}\right )} \arccos \left (a x\right ) - \frac {2 \, {\left (a^{2} x^{3} + 6 \, x\right )}}{27 \, a^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.72, size = 59, normalized size = 0.72 \begin {gather*} \frac {9 \, a^{3} x^{3} \arccos \left (a x\right )^{2} - 2 \, a^{3} x^{3} - 6 \, {\left (a^{2} x^{2} + 2\right )} \sqrt {-a^{2} x^{2} + 1} \arccos \left (a x\right ) - 12 \, a x}{27 \, a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.20, size = 83, normalized size = 1.01 \begin {gather*} \begin {cases} \frac {x^{3} \operatorname {acos}^{2}{\left (a x \right )}}{3} - \frac {2 x^{3}}{27} - \frac {2 x^{2} \sqrt {- a^{2} x^{2} + 1} \operatorname {acos}{\left (a x \right )}}{9 a} - \frac {4 x}{9 a^{2}} - \frac {4 \sqrt {- a^{2} x^{2} + 1} \operatorname {acos}{\left (a x \right )}}{9 a^{3}} & \text {for}\: a \neq 0 \\\frac {\pi ^{2} x^{3}}{12} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.42, size = 68, normalized size = 0.83 \begin {gather*} \frac {1}{3} \, x^{3} \arccos \left (a x\right )^{2} - \frac {2}{27} \, x^{3} - \frac {2 \, \sqrt {-a^{2} x^{2} + 1} x^{2} \arccos \left (a x\right )}{9 \, a} - \frac {4 \, x}{9 \, a^{2}} - \frac {4 \, \sqrt {-a^{2} x^{2} + 1} \arccos \left (a x\right )}{9 \, a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int x^2\,{\mathrm {acos}\left (a\,x\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________